uniform mat4 worldViewProj;
uniform mat4 textureMatrix;

attribute vec3 inPosition;
attribute vec2 inTexCoord;

varying vec2 vTexCoord;

void main()
{
	vec4 texCoord4;
	texCoord4 = textureMatrix * vec4(inTexCoord.x, inTexCoord.y, 0.0, 1.0);
	vTexCoord = texCoord4.xy;
		
	gl_Position = worldViewProj * vec4(inPosition, 1.0);
}